package model;

import java.util.Arrays;

/*
   This class is created as a mapping to passengers
 */
public class Passenger {
    private String ID;
    private String surname;
    private String bookNumber;
    private String status;
    private String baggage;
    private final String[] row = new String[4];
    private final String[] col = new String[4];
    private final String[] food = new String[4]; // chosen food
    private String isVIP; // determine whether choose optional service
    private final String[] planeNum = new String[4];
    private String currentPlaneNum;

    public String getStatus() {
        return status;
    }

    public String getBaggage() {
        return baggage;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setBaggage(String baggage) {
        this.baggage = baggage;
    }

    public void setCurrentPlaneNum(String currentPlaneNum){
        this.currentPlaneNum = currentPlaneNum;
    }

    public String getCurrentPlaneNum(){
        return this.currentPlaneNum;
    }


    public String[] getPlaneNum(){
        return this.planeNum;
    }

    public String getID() {
        return ID;
    }

    public String getSurname() {
        return surname;
    }

    public String getBookNumber() {
        return bookNumber;
    }

    public String[] getRow() {
        return this.row;
    }

    public String[] getCol() {
        return col;
    }

    public String[] getFood() {
        return food;
    }

    public String getIsVIP() {
        return isVIP;
    }

    public void setPlaneNum(int position,String planeNum){
        this.planeNum[position] = planeNum;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public void setBookNumber(String bookNumber) {
        this.bookNumber = bookNumber;
    }

    public void setRow(int position,String row) {
        this.row[position] = row;
    }

    public void setCol(int position,String col) {
        this.col[position] = col;
    }

    public void setFood(int position,String food) {
        this.food[position] = food;
    }

    public void setIsVIP(String isVIP) {
        this.isVIP = isVIP;
    }

    @Override
    public String toString() {
        return "Passenger{" +
                "ID='" + ID + '\'' +
                ", surname='" + surname + '\'' +
                ", bookNumber='" + bookNumber + '\'' +
                ", status='" + status + '\'' +
                ", baggage='" + baggage + '\'' +
                ", row=" + Arrays.toString(row) +
                ", col=" + Arrays.toString(col) +
                ", food=" + Arrays.toString(food) +
                ", isVIP='" + isVIP + '\'' +
                ", planeNum=" + Arrays.toString(planeNum) +
                ", currentPlaneNum='" + currentPlaneNum + '\'' +
                '}';
    }
}
